<template>
  <div v-if="mdShow">
    <div class="md-modal modal-msg md-modal-transition md-show">
      <div class="md-modal-inner">
        <div class="md-top">
          <div class="md-title">{{title}}</div>
          <button class="md-close" @click="hideLogin">Close</button>
        </div>
        <div class="md-content">
          <div class="confirm-tips">
            <slot name="message"></slot>
          </div>
          <div class="btn-wrap">
            <slot name="btnGroup">

            </slot>
          </div>
        </div>
      </div>
    </div>
    <div class="md-overlay" @click="hideLogin"></div>
  </div>
</template>

<script>
    export default {
      data(){
        return {
          msg: 'jemmy'
        }
      },
      props:{
        "mdShow": Boolean,
        "title": String
      },
      methods: {
        hideLogin(){
          this.$emit('close')
        }
      }
    }
</script>

<style scoped>

</style>
